Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leaking workspaces and some code cleanup #2437

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Conversation

Al12rs
Copy link
Contributor

@Al12rs Al12rs commented Jan 7, 2025

Going through the Left Menu code I noticed that Left Menus and the entire workspaces were being leaked.
The cleanup code was simply never implemented after we added support for deleting loadouts.

This also has a couple of other changes:

  • Fix workspaces not getting deleted when loadouts are removed
  • Use SortAndBind when practical rather than Sort to avoid obsolete warning
  • Store left menus in dictionary rather than ReadOnlyObservableCollection

@Al12rs Al12rs requested a review from a team January 7, 2025 09:41
@Al12rs Al12rs self-assigned this Jan 7, 2025
@Al12rs Al12rs merged commit b7ce597 into main Jan 7, 2025
10 checks passed
@Al12rs Al12rs deleted the feat/left-menu-rework branch January 7, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants